package com.xh.bussiness.system.service;



import com.xh.bussiness.system.bean.request.UserDataPermissionRequest;
import com.xh.bussiness.system.model.UserDataPermission;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;

import java.util.List;

/**
 * <p>
 * 用户数据权限 服务类
 * </p>
 *
 * @author Pitt
 * @since 2020-11-23
 */
public interface IUserDataPermissionService extends IBaseService<UserDataPermission> {

    /**
     * 分页查询方法
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryUserDataPermissionPage(XhPage page, UserDataPermissionRequest bean);

    /**
     * 查询方法
     * @param bean
     * @return
     */
    public List queryUserDataPermission(UserDataPermissionRequest bean);

    public UserDataPermission queryByUserIdAndSubjectCode(String userId, String subjectCode);

    boolean saveUserDataPermission(UserDataPermissionRequest request);
}
